/**
 * Perform the element default action.
 *
 * @param {JSEvent} event the event that triggered the action
 *
 * @properties={typeid:24,uuid:"4FDAFC5C-0E4F-448B-814F-4B346EEC1F33"}
 */
function principal(event) {
	forms.main.controller.show()
}

/**
 * Perform the element default action.
 *
 * @param {JSEvent} event the event that triggered the action
 *
 * @properties={typeid:24,uuid:"1BA5B572-FC44-4E35-82B7-38B722F07CF6"}
 */
function alta(event) {
	currentcontroller.newRecord()
}

/**
 * Perform the element default action.
 *
 * @param {JSEvent} event the event that triggered the action
 *
 * @properties={typeid:24,uuid:"616E6611-3D85-4669-A6E0-31A660DC9F4B"}
 */
function baja(event) {
	currentcontroller.deleteRecord()
}

/**
 * Perform the element default action.
 *
 * @param {JSEvent} event the event that triggered the action
 *
 * @properties={typeid:24,uuid:"5642E755-4224-465B-BA54-451703971638"}
 */
function siguiente(event) {
	currentcontroller.setSelectedIndex(currentcontroller.getSelectedIndex()+1)
}

/**
 * Perform the element default action.
 *
 * @param {JSEvent} event the event that triggered the action
 *
 * @properties={typeid:24,uuid:"FCCCA163-63DD-4FBA-B036-3D8FE3332E85"}
 */
function anterior(event) {
	currentcontroller.setSelectedIndex(currentcontroller.getSelectedIndex()-1)
}

/**
 * Perform the element default action.
 *
 * @param {JSEvent} event the event that triggered the action
 *
 * @properties={typeid:24,uuid:"90D3294A-284D-4273-AAA2-F22B718103E5"}
 */
function volver(event) {
	history.back()
}

/**
 * Perform the element default action.
 *
 * @param {JSEvent} event the event that triggered the action
 *
 * @properties={typeid:24,uuid:"45BD824E-A696-4A5E-897F-65BF9DB8EDC2"}
 */
function salir(event) {
	globals.salir()
}
